<?php

/*
 * Edit by shengxin
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
 */
namespace api\v2\controller;

use api\base\CRestBase;
/**
 * Description of PatternParentsController
 *
 * @author PC
 */
class PatternParentsController extends CRestBase{
    //put your code here
    //?studentId=07d51f5d1577423ca1d82a570ee34fd9&type=1&appVersionCode=55&appChannel=student_xiaomi 
    public function query(){
        $str = '{
		"studentId": "07d51f5d1577423ca1d82a570ee34fd9",
		"type": 1,
		"patternParentSlots": [{
			"dayTheWeek": 1,
			"patternTimeScopes": [{
				"startTime": "01:00",
				"endTime": "02:00"
			}]
		}, {
			"dayTheWeek": 2,
			"patternTimeScopes": [{
				"startTime": "01:00",
				"endTime": "02:00"
			}]
		}, {
			"dayTheWeek": 3,
			"patternTimeScopes": [{
				"startTime": "01:00",
				"endTime": "02:00"
			}]
		}, {
			"dayTheWeek": 4,
			"patternTimeScopes": [{
				"startTime": "01:00",
				"endTime": "02:00"
			}]
		}, {
			"dayTheWeek": 5,
			"patternTimeScopes": [{
				"startTime": "01:00",
				"endTime": "02:00"
			}]
		}, {
			"dayTheWeek": 6,
			"patternTimeScopes": [{
				"startTime": "00:00",
				"endTime": "06:00"
			}]
		}, {
			"dayTheWeek": 7,
			"patternTimeScopes": [{
				"startTime": "00:00",
				"endTime": "06:00"
			}]
		}]
}';
        $data = json_decode($str,true);
        return $this->success('ok',$data);
    }
}
